package com.summer.mall.service;

import com.github.pagehelper.PageInfo;
import com.summer.mall.common.ResponseService;
import com.summer.mall.vo.OrderVo;

import java.util.Map;

public interface OrderService {

    ResponseService pay(Long orderNo, Integer userId, String path);

//    ResponseService aliCallback(Map<String, String> params); //预留阿里巴巴api

    ResponseService queryOrderPayStatus(Integer userId, Long orderNo);

    ResponseService createOrder(Integer userId, Integer shippingId);

    ResponseService<String> cancel(Integer userId, Long orderNo);

    ResponseService getOrderCartProduct(Integer userId);

    ResponseService<OrderVo> getOrderDetail(Integer userId, Long orderNo);

    ResponseService<PageInfo> getOrderList(Integer userId, int pageNum, int pageSize);

    ResponseService<PageInfo> manageList(int pageNum, int pageSize);

    ResponseService<OrderVo> manageDetail(Long orderNo);

    ResponseService<PageInfo> manageSearch(Long orderNo, int pageNum, int pageSize);

    ResponseService<String> manageSendGoods(Long orderNo);

}
